package com.itheima.test.code14;

import java.util.concurrent.Callable;

/**
 * @author df
 * @date 2021/8/22
 */
public class MyCallable implements Callable {
    @Override
    public Object call() throws Exception {
        for (int i = 0; i < 50; i++) {
            System.out.println("跟中文哥哥表白"+i);
        }
        //返回值就表示线程运行完毕之后的结果
        return "答应";
    }
}
